﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Example13.aspx.cs" Inherits="Chapter05.Example13" %>

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>代码清单 5-13 读取和修改对象属性值</title>
</head>
<body>
    <form>
        <div>
            <script type="text/javascript">
                var myData = {
                    name: "Adam",
                    weather: "sunny",
                };

                myData.name = "Joe";
                myData["weather"] = "raining";

                document.writeln("Hello " + myData.name + ".");
                document.writeln("Is is " + myData["weather"]);
            </script>
        </div>
    </form>
</body>
</html>
